package cn.ibizlab.core.authentication.service;

import cn.ibizlab.core.authentication.domain.SMSResponse;

import java.util.LinkedHashMap;

/**
 * 短信服务
 */
public interface SMSService{
    /**
     * 发送短信
     * @param phone
     * @param message
     * @return
     */
    SMSResponse sendMessage(String phone, String message);

    /**
     * 根据模板id发送短信
     * @param phone
     * @param templateId
     * @param messages
     * @return
     */
    SMSResponse sendMessage(String phone, String templateId, LinkedHashMap<String, String> messages);
}
